
    def __init__(self, parent):
        self._parent = parent
        self._parent._seleniumClientList.append(self)

        self._driver = None
        try:
            # select User-Agent
            ua = ManpaUtil.getRandomUserAgent()

            # select google-chrome options
            options = []
            if True:
                options = selenium.webdriver.wpewebkit.options.Options()
                # options.add_argument('--no-sandbox')                    # FIXME
                # options.add_argument('--ignore-ssl-error=yes')
                # options.add_argument('--ignore-certificate-errors')
                # options.add_argument('--disable-popup-blocking')      # FIXME
                # if ua is not None:
                #     options.add_argument('user-agent=' + ua)
                # options.add_argument('--proxy-server=http://ip:port')

            # select google-chrome preferences
            # prefs = dict()
            # if True:
            #     # enable download capabilities
            #     prefs.update({
            #         "download.default_directory": self._parent._downloadDir,
            #         "download.prompt_for_download": False,
            #         "download.directory_upgrade": True,
            #         "safebrowsing.enabled": False,
            #         "safebrowsing.disable_download_protection": True,
            #     })

            # create webdriver object
            # options.add_experimental_option("prefs", prefs)
            self._driver = selenium.webdriver.wpewebkit(options=options)
        except Exception:
            self.quit()
            raise
